<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>smarty站点</title>
	{config_load file='smarty.conf' section='spring'}
	<style>
	body{
		color:{#color#};
		font-size:{$smarty.config.size}
	}
	</style>
</head>
<body>
	姓名：{$name}<br>
	{assign var='age' value=20}
	年龄：{$age}<br>
	{$add='北京'}
	地址：{$add}
	get:{$smarty.get.name}
	request:{$smarty.request.name}
	常量：{$smarty.const.name}<br>
	cookie的值:{$smarty.session.name}<br>
	时间戳:{$smarty.now}<br>
	版本号:{$smarty.version}<br>
	根目录:{$smarty.server.DOCUMENT_ROOT}<br>
	左界定:{$smarty.ldelim}<br>
	右界定:{$smarty.rdelim}<br>
	
	<hr>
	{if $smarty.get.score gte 90}
	A
	{elseif $smarty.get.score gte 80}
	B
	{else}
	C
	{/if}
	<hr>
	{if $smarty.get.score is even}
	是偶数
	{elseif $smarty.get.score is odd}
	是奇数
	{/if}
</body>
</html>